{extend name="index/layout" /}
{block name="main"}
    <div class="container-fluid">
        <div class="row" style="margin-top: 100px">
            {if $success eq 1}
                <div class="alert alert-success" role="alert">{$msg}</div>
            {else}
                <div class="alert alert-danger" role="alert">{$msg}</div>
            {/if}
        </div>
        <div class="row" style="margin-top: 10px">
            <button onclick="go_on_verify()" type="button" style="width: 100%;background-color: #01AAED;color: white;height: 60px" class="btn btn-default">继续核销</button>
        </div>
    </div>
{/block}
{block name="script"}
    <script type="text/javascript" charset="utf-8">
        wx.config({$wechat});
        function go_on_verify(){
            wx.scanQRCode({
                needResult: 0, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
                scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
            });
        }
    </script>
{/block}